package com.example.multilevelapprovalback.controller;
//审核结果管理
import com.example.multilevelapprovalback.pojo.Result;
import com.example.multilevelapprovalback.service.ApprovalResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/approval-result")
public class ApprovalResultController {

    @Autowired
    private ApprovalResultService approvalResultService;

    /**
     * 获取审核结果列表
     * @return
     */
    @GetMapping
    public Result get() {
        Object result = approvalResultService.get();
        return Result.success(result);
    }
}
